package com.zbkj.common.request.project;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @Auther:
 * @Date: 2024/7/14 14:01
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "AdminAiContentRequest对象", description = "服务端ai内容提交请求对象")
public class AdminAiContentRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("项目ID")
    @NotNull(message = "项目ID不能为空")
    private Long projectId;

    @ApiModelProperty("项目ID")
    @NotEmpty(message = "填写内容不能为空")
    @Valid
    List<ContentRequest> contentList;


    @Getter
    @Setter
    public static class ContentRequest {

        @ApiModelProperty("子系统")
        @NotBlank(message = "子系统名不能为空")
        private String subsysName;

        @ApiModelProperty("模块内容")
        @NotBlank(message = "模块内容不能为空")
        private String title;

        @ApiModelProperty("前端模块填写顺序号")
        private Integer titleSort;
        @ApiModelProperty("内容")
        @NotBlank(message = "内容不能为空")
        private String content;
        @ApiModelProperty("前端填写内容顺序号")
        private Integer sortNum;
    }
}
